﻿namespace WMS6.Web.MessageServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.Diagnostics;
    using System.Runtime.Serialization;

    [Serializable, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="UserMessageQueryEntity", Namespace="http://schemas.datacontract.org/2004/07/WMS6.QueryEntity"), DebuggerStepThrough]
    public class UserMessageQueryEntity : BaseQuery
    {
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private string CreatedDateField;
        [OptionalField]
        private string FromUserIDField;
        [OptionalField]
        private string IsActiveField;
        [OptionalField]
        private string IsReadField;
        [OptionalField]
        private string MessageContentField;
        [OptionalField]
        private string MessageTitleField;
        [OptionalField]
        private string RowIDField;
        [OptionalField]
        private string SystemCreatedField;
        [OptionalField]
        private string ToUserIDField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private string UpdatedDateField;

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    base.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public string CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedDateField, value))
                {
                    this.CreatedDateField = value;
                    base.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string FromUserID
        {
            get
            {
                return this.FromUserIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromUserIDField, value))
                {
                    this.FromUserIDField = value;
                    base.RaisePropertyChanged("FromUserID");
                }
            }
        }

        [DataMember]
        public string IsActive
        {
            get
            {
                return this.IsActiveField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsActiveField, value))
                {
                    this.IsActiveField = value;
                    base.RaisePropertyChanged("IsActive");
                }
            }
        }

        [DataMember]
        public string IsRead
        {
            get
            {
                return this.IsReadField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsReadField, value))
                {
                    this.IsReadField = value;
                    base.RaisePropertyChanged("IsRead");
                }
            }
        }

        [DataMember]
        public string MessageContent
        {
            get
            {
                return this.MessageContentField;
            }
            set
            {
                if (!object.ReferenceEquals(this.MessageContentField, value))
                {
                    this.MessageContentField = value;
                    base.RaisePropertyChanged("MessageContent");
                }
            }
        }

        [DataMember]
        public string MessageTitle
        {
            get
            {
                return this.MessageTitleField;
            }
            set
            {
                if (!object.ReferenceEquals(this.MessageTitleField, value))
                {
                    this.MessageTitleField = value;
                    base.RaisePropertyChanged("MessageTitle");
                }
            }
        }

        [DataMember]
        public string RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RowIDField, value))
                {
                    this.RowIDField = value;
                    base.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string SystemCreated
        {
            get
            {
                return this.SystemCreatedField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SystemCreatedField, value))
                {
                    this.SystemCreatedField = value;
                    base.RaisePropertyChanged("SystemCreated");
                }
            }
        }

        [DataMember]
        public string ToUserID
        {
            get
            {
                return this.ToUserIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ToUserIDField, value))
                {
                    this.ToUserIDField = value;
                    base.RaisePropertyChanged("ToUserID");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    base.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public string UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedDateField, value))
                {
                    this.UpdatedDateField = value;
                    base.RaisePropertyChanged("UpdatedDate");
                }
            }
        }
    }
}

